<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
    <title>详情操作</title>
    <meta content="yes" name="apple-mobile-web-app-capable"/>
    <meta content="yes" name="apple-touch-fullscreen"/>
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"/>
    <!--<link href="../../static/css/main.css" th:href="@{/css/main.css}" rel="stylesheet" />-->
    <script type="text/javascript" src="/js/jquery-1.12.3.js"></script>
    <script type="text/javascript" src="/js/layui/layui.js"></script>
    <link rel="stylesheet" href="/js/layui/css/layui.css" media="all" />
    <script type="text/javascript">
        $(function(){
            layui.use('layer', function() { //独立版的layer无需执行这一句
                var $ = layui.jquery;
                window.layer = layui.layer;
                layer = layui.layer;
//                var type = othis.data('type');
                var text=$("#msg").text();
                layer.open({
                    type: 1
                    ,offset: 'auto' //具体配置参考：http://www.layui.com/doc/modules/layer.html#offset
                    ,id: 'layerDemo'+'aaa' //防止重复弹出
                    ,content: '<div style="padding: 20px 100px;">'+ text +'</div>'
                    ,btn: '返回公众号'
                    ,btnAlign: 'c' //按钮居中
                    ,shade: 0 //不显示遮罩
                    ,yes: function(){
//                        window.close();
//                        layer.closeAll();
                        WeixinJSBridge.invoke('closeWindow',{},function(res){
                        });
                    }
                });
            });
        });
        z
    </script>
</head>

<body>
<center>
    <div style="display: none" th:text="${msg}" id="msg"></div>
</center>
</body>
</html>
